package com.xja.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.xja.mapper.ArticleCommentMapper;
import com.xja.entity.ArticleComment;
import com.xja.service.ArticleCommentService;
@Service
public class ArticleCommentServiceImpl implements ArticleCommentService{

    @Resource
    private ArticleCommentMapper articleCommentMapper;

    @Override
    public int deleteByPrimaryKey(Integer cid) {
        return articleCommentMapper.deleteByPrimaryKey(cid);
    }

    @Override
    public int insert(ArticleComment record) {
        return articleCommentMapper.insert(record);
    }

    @Override
    public int insertSelective(ArticleComment record) {
        return articleCommentMapper.insertSelective(record);
    }

    @Override
    public ArticleComment selectByPrimaryKey(Integer cid) {
        return articleCommentMapper.selectByPrimaryKey(cid);
    }

    @Override
    public int updateByPrimaryKeySelective(ArticleComment record) {
        return articleCommentMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ArticleComment record) {
        return articleCommentMapper.updateByPrimaryKey(record);
    }

}
